<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>css属性选择器</title>
		<style>
			h1[id]{
				font-size: 59px;
				color: red;
			}
			h1[id*=d]{
				border: 5px outset gold;
			} 
			h1[id$=p]{
				background-color: #0D8BF2;
			}
		</style>
	</head>
	<body>
		<h1 id="d1">1111</h1>
		<h1 title="这是第二个">222</h1>
		<h1  id="d2">333</h1>
		<h1>445</h1>
		<h1  id="tip">555</h1>
		<h1>6666</h1>
		<h1 >7777</h1>
	</body>
</html>
